import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_flavor/flutter_flavor.dart';

import 'example_app.dart';

void main() {
  FlavorConfig(
      name: "PROD",
      color: Colors.lightGreenAccent,
      location: BannerLocation.bottomStart,
      variables: {
        "baseUrl":"https://api.amway.com.cn/creatorconf-app/",
        "creatorUserName": "gh_6edd2445e568",
        "creatorPath": "pages/index/index?shareFrom=",
        "miniProgramType": 0,
        "ossDomain": "cc-api.amway.com.cn",
        "ossPath": "/v1/creator/sts",
        "ossAppCode": "APPCODE 7cdd888562c04bf1940c41d2e330612f",
        "ossEndpoint": "https://contenthub-pd.oss-cn-shenzhen.aliyuncs.com/",
        "ossUploadFileRoot": "creators/",
        "webPageUrl": "https://ressuperapp.amway.com.cn",
        "pictureBaseUrl": "https://resources.amway.com.cn/",
        "amwayBaseUrl":"https://cc-api.amway.com.cn/mrm/v1",
        "AppCode": "AppCode 7cdd888562c04bf1940c41d2e330612f",


      });
  runApp(ExampleApp());
  if (Platform.isAndroid) {
    // 以下两行 设置android状态栏为透明的沉浸。写在组件渲染之后，是为了在渲染后进行set赋值，覆盖状态栏，写在渲染之前MaterialApp组件会覆盖掉这个值。
    SystemUiOverlayStyle systemUiOverlayStyle =
        SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }
}
